﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestSignalrService
{
    public class TestModel
    {
    }
    /// <summary>
    /// 用户信息模型
    /// </summary>
    public class UserInfo
    {
        public UserInfo() { }
        public UserInfo(string nick,string connectedid)
        {
            this.ConnectedId = connectedid;
            this.Nick = nick;
        }
        public string ConnectedId { get; set; }
        public string Nick { get; set; }
    }
    /// <summary>
    /// 消息模型
    /// </summary>
    public class MessageItem : UserInfo
    {
        public MessageItem(string msg, string nick, string connectedid)
        {
            this.Msg = msg;
            this.ConnectedId = connectedid;
            this.Nick = nick;
        }
        public string Msg { get; set; }
    }

    
}
